package com.contract.spirit.ui.income

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.contract.spirit.R
import com.contract.spirit.bean.entity.IncomeRecordInfo
import com.contract.spirit.databinding.AdapterIncomeRecordItemBinding

/**
 * @author: witness
 * created: 2021/9/28
 * desc:
 */
class IncomeRecordAdapter : BaseQuickAdapter<IncomeRecordInfo,BaseDataBindingHolder<AdapterIncomeRecordItemBinding>>(
    R.layout.adapter_income_record_item,
    ArrayList()
) {
    override fun convert(
        holder: BaseDataBindingHolder<AdapterIncomeRecordItemBinding>,
        item: IncomeRecordInfo
    ) {
        holder.dataBinding?.item = item
    }
}